<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/aui.css">
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="js/init.js"></script>
    <title>个人资料</title>
</head>
<body>
<header>
    <a href="javascript:history.back(-1)" class="f1 head-back"></a>
    <div class="f8">个人资料</div>
    <div class="f1"></div>
</header>
<section class="bg-gray">
    <div class="pad-3">
        <!--基本信息-->
        <div class="bg-white border-radius-1 border-gray mar-b-3 hidden">
            <p class="pad-2-3 bg-gray-l border-b-gray">基本信息</p>
            <ul class="pad-2-3 color-gray line-h-2">
                <li>
                    账号：<span id="account"></span>
                </li>
                <li>
                    手机：<span id="zcphone"></span>
                </li>
                <li>
                    直推人数：<span id="num"></span>
                </li>
                <!--<li>
                    编号：<span id="bianh"></span>
                </li>-->
                <li>
                    等级：<span id="grade"></span>
                </li>
                <li>
                    盟主身份：<span id="isMz"></span>
                </li>
                <li class="flex">
                    eth钱包地址：
                    <p id="eth_add" class="f1 ellipsis"></p>
                </li>
                <li class="flex">
                    etc钱包地址：
                    <p id="etc_add" class="f1 ellipsis"></p>

                </li>
            </ul>
        </div>

        <!--实名认证-->
        <!--<div class="bg-white border-radius-1 border-gray mar-b-3 hidden">
            <p class="pad-2-3 bg-gray-l border-b-gray">实名认证</p>
            <div class="pad-3 flex line-h-2 color-gray">
                <div class="f1 pad-r-2">
                    <p>
                        姓名：<span>的观点</span>
                    </p>
                    <p class="ellipsis">
                        身份证：<span>4120546512316543156425</span>
                    </p>
                    <p>
                        状态：<span>已认证</span>
                    </p>
                </div>
                <span id="picbtn" class="pad-l-r-3 bg-blue border-radius-1 color-white">查看</span>
            </div>
        </div>-->


    </div>
</section>

<!--mask-->
<div class="mask none"></div>
<!--复制成功-->
<div id="notice" class="mask-box bg-white border-radius-1 hidden none">
    <p class="bg-blue pad-2 right">
        <span class="fl color-white">提示信息</span>
        <span class="close"> </span>
    </p>
    <div class="pad-3">
        <div class="pad-3 bg-gray-l flex">
            <span class="radio active mar-r-2"></span>
            复制成功
        </div>
    </div>
</div>

<!--查看照片-->
<div id="picbox" class="mask-box bg-white border-radius-1 hidden none">
    <p class="pad-2 bg-blue right">
        <span class="close"></span>
    </p>
    <div class="pad-2">
        <img class="col-10" src="" alt="">
    </div>
</div>

<script src="js/foot.js"></script>
<script>
    $("#picbtn").click(function () {
        $(".mask").show();
        $("#picbox").show();
    });
    $("#copy").click(function () {
        $(".mask").show();
        $("#notice").show();
    });

    var data;
    new AjaxRequest({
        type: 'post',
        dataType: 'json',
        url: hostUrl + 'index/User/myinfo',
        data: data,
        callback: res => {
            if(res.status == 1){
                $("#eth_add").text(res.data.eth_wallet_add);
                $("#etc_add").text(res.data.etc_wallet_add);
                $("#account").text(res.data.account);
                $("#zcphone").text(res.data.zcphone);
                $("#num").text(res.data.memno);
                $("#bianh").text(res.data.id);
                $("#grade").text(res.data.grade);
                if(res.data.is_chief == 0){
                    $("#isMz").text('不是')
                }
                if(res.data.is_chief == 1){
                    $("#isMz").text('是')
                }

            }
        }
    });

</script>

</body>
</html>